package com.cloud.mkz.common.api.feign;

import com.cloud.mkz.common.api.feign.factory.ParamServiceFallbackFactory;
import com.cloud.mkz.core.common.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 系统参数接口
 * @author: KuangJianyu
 * @date: 2021年3月3日
 */
@FeignClient(contextId = "paramClient", value = ServiceNameConstants.API_SERVICE, fallbackFactory = ParamServiceFallbackFactory.class)
public interface ParamClient {
	/**
	 * 获取系统参数值
	 *
	 * @param key 参数key
	 * @return ResponseResult
	 */
	@GetMapping("/get")
	public String get(@RequestParam("key") String key);
}
